import request from '@/utils/request'

export const getAddressListAPI = () => request.get('/api/address')

export const addAddressAPI = (data: any) => request.post('/api/address', data)

export const updateAddressAPI = (data: any) => request.patch('/api/address', data)

export const setDefaultAddressAPI = (data: any) => request.post('/api/address/default', data)

export const deleteAddressAPI = (id: number) => request.delete(`/api/address/${id}`)
